.class public Lcom/waiqin365/lightapp/deptmanager/a/a;
.super Lcom/waiqin365/base/a/a;


# instance fields
.field private b:Ljava/util/List;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/base/a/a;-><init>(Landroid/content/Context;)V

    iput-object p2, p0, Lcom/waiqin365/lightapp/deptmanager/a/a;->b:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public a(ILandroid/view/View;Landroid/view/ViewGroup;Lcom/waiqin365/base/a/b;)Landroid/view/View;
    .locals 11

    const/4 v10, 0x0

    const/16 v9, 0x8

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/a/a;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/c;

    const v1, 0x7f0c0696

    invoke-virtual {p4, p2, v1}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/base/login/mainview/CircleImageView;

    const v2, 0x7f0c04fd

    invoke-virtual {p4, p2, v2}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    const v3, 0x7f0c0697

    invoke-virtual {p4, p2, v3}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    const v4, 0x7f0c0500

    invoke-virtual {p4, p2, v4}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    const v5, 0x7f0c0698

    invoke-virtual {p4, p2, v5}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    const v6, 0x7f0c005a

    invoke-virtual {p4, p2, v6}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v6

    iget-boolean v7, v0, Lcom/waiqin365/lightapp/deptmanager/c/c;->v:Z

    if-eqz v7, :cond_1

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/b;

    invoke-virtual {v1, v10}, Lcom/waiqin365/base/login/mainview/CircleImageView;->setVisibility(I)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v4

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/deptmanager/a/a;->a()Landroid/content/Context;

    move-result-object v7

    iget-object v8, v0, Lcom/waiqin365/lightapp/deptmanager/c/b;->e:Ljava/lang/String;

    invoke-virtual {v4, v7, v8}, Lcom/waiqin365/base/login/mainview/a;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/deptmanager/a/a;->a()Landroid/content/Context;

    move-result-object v7

    invoke-static {v7, v1, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;Landroid/widget/ImageView;Ljava/lang/String;)V

    iget-object v1, v0, Lcom/waiqin365/lightapp/deptmanager/c/b;->b:Ljava/lang/String;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {v3, v9}, Landroid/widget/LinearLayout;->setVisibility(I)V

    sget-boolean v1, Lcom/waiqin365/lightapp/deptmanager/w;->j:Z

    if-eqz v1, :cond_0

    invoke-virtual {v5, v10}, Landroid/widget/ImageView;->setVisibility(I)V

    invoke-virtual {v5, v0}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    new-instance v0, Lcom/waiqin365/lightapp/deptmanager/a/b;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/deptmanager/a/b;-><init>(Lcom/waiqin365/lightapp/deptmanager/a/a;)V

    invoke-virtual {v5, v0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/a/a;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne p1, v0, :cond_2

    invoke-virtual {v6, v10}, Landroid/view/View;->setVisibility(I)V

    :goto_1
    return-object p2

    :cond_0
    invoke-virtual {v5, v9}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0

    :cond_1
    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-virtual {v1, v9}, Lcom/waiqin365/base/login/mainview/CircleImageView;->setVisibility(I)V

    iget-object v1, v0, Lcom/waiqin365/lightapp/deptmanager/c/a;->d:Ljava/lang/String;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {v3, v10}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/c/a;->e:Ljava/lang/String;

    invoke-virtual {v4, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {v5, v9}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0

    :cond_2
    invoke-virtual {v6, v9}, Landroid/view/View;->setVisibility(I)V

    goto :goto_1
.end method

.method public a(I)Lcom/waiqin365/lightapp/deptmanager/c/c;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/a/a;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/c;

    return-object v0
.end method

.method public b()I
    .locals 1

    const v0, 0x7f030121

    return v0
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/a/a;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public synthetic getItem(I)Ljava/lang/Object;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/deptmanager/a/a;->a(I)Lcom/waiqin365/lightapp/deptmanager/c/c;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method
